package com.wxy.zhuzhoumenu;


import com.ak.zhuzhou.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

public class MenuCommentAdapter extends BaseAdapter{
	private Context context;

	public MenuCommentAdapter(Context context) {
		this.context = context;
	}

	class ViewHolder {
		ImageView avatar;
		TextView commentContent;
		TextView name;
		TextView newTitle;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 10;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		final ViewHolder viewHolder;
		if (convertView == null) {
			LayoutInflater inflater = LayoutInflater.from(context);
			convertView = inflater.inflate(R.layout.x_menu_comment_item, null);
			viewHolder = new ViewHolder();
			viewHolder.avatar = (ImageView) convertView
					.findViewById(R.id.user_comment_avatar);
			viewHolder.commentContent = (TextView) convertView
					.findViewById(R.id.user_comment_content);
			viewHolder.name = (TextView) convertView
					.findViewById(R.id.user_comment_name);
			viewHolder.newTitle = (TextView) convertView
					.findViewById(R.id.user_comment_new_title);
			convertView.setTag(viewHolder);
		} else {
			viewHolder = (ViewHolder) convertView.getTag();
		}
//		viewHolder.hint.setText();
//		viewHolder.userData.setText();

		return convertView;
	}

}
